package com.example.asus.practice;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.AppCompatButton;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    AppCompatButton bt_date_choice,bt_time_choice,bt_chronometer, bt_progressBar,bt_seekBar, bt_ratingBar, bt_camera, bt_vedio, bt_playMusic, bt_musicPlay;
    AppCompatButton bt_image_switch,bt_gridview;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        bt_date_choice = (AppCompatButton)findViewById(R.id.bt_date_choice);
        bt_date_choice.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this,DateChoice.class);
                startActivity(intent);
            }
        });

        bt_time_choice = (AppCompatButton)findViewById(R.id.bt_time_choice);
        bt_time_choice.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this,TimeChoice.class);
                startActivity(intent);
            }
        });

        bt_chronometer = (AppCompatButton)findViewById(R.id.bt_hronometer);
        bt_chronometer.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this,CHronometer.class);
                startActivity(intent);
            }
        });

        bt_progressBar = (AppCompatButton)findViewById(R.id.bt_progressBar);
        bt_progressBar.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this,Progressbar.class);
                startActivity(intent);
            }
        });

        bt_seekBar = (AppCompatButton)findViewById(R.id.bt_seekbar);
        bt_seekBar.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this,Seekbar.class);
                startActivity(intent);
            }
        });

        bt_ratingBar = (AppCompatButton)findViewById(R.id.bt_ratingBar);
        bt_ratingBar.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this,Ratingbar.class);
                startActivity(intent);
            }
        });

        bt_camera = (AppCompatButton)findViewById(R.id.bt_camera);
        bt_camera.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this,CAMERA.class);
                startActivity(intent);
            }
        });

        bt_vedio = (AppCompatButton)findViewById(R.id.bt_Video);
        bt_vedio.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this,VEDIO.class);
                startActivity(intent);
            }
        });

        bt_playMusic = (AppCompatButton)findViewById(R.id.bt_playMusic);
        bt_playMusic.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this,PlayMusic.class);
                startActivity(intent);
            }
        });

        bt_musicPlay = (AppCompatButton)findViewById(R.id.bt_musicPlay);
        bt_musicPlay.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this,MusicPlay.class);
                startActivity(intent);
            }
        });

        bt_image_switch = (AppCompatButton)findViewById(R.id.image_switch);
        bt_image_switch.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this,ImageSWITCHER.class);
                startActivity(intent);
            }
        });

    }
}
